package com.maple.soa.dao;

import com.maple.soa.mapper.SysRoleMapper;
import com.maple.soa.pojo.SysRole;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

/**
 * @author lijian
 * @date 2020/7/11
 */
public class SysRoleDao {
    private SqlSessionTemplate sqlSession;

    public void setSqlSession(SqlSessionTemplate sqlSession) {
        this.sqlSession = sqlSession;
    }

    public List<SysRole> listAll() {
        return sqlSession.getMapper(SysRoleMapper.class).listAll();
    }

}
